// JavaScript Document
function getRequest()
{
	var xmlHttp = false;
	try 
	{
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e) 
	{
  		try 
		{
    		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  		} 
		catch (e2) 
		{
    		xmlHttp = false;
		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') 
	{
  		xmlHttp = new XMLHttpRequest();
	}
	return xmlHttp;
}

function DealWithData(RequestType,Async,RequestUrl,SendData)
{
	var xmlHttp=getRequest();
	xmlHttp.open(RequestType, RequestUrl,Async);
	if(RequestType.toUpperCase()=="POST")
		xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	
	//xmlHttp.onreadystatechange = UpdateMethod;
	if(SendData=='')
	{
		SendData=null;
	}
	xmlHttp.send(SendData);
}